Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce HAML-Lint for HAML files #776

Merged
merged 1 commit into from
Jul 27, 2022
Merged

Introduce HAML-Lint for HAML files #776

merged 1 commit into from
Jul 27, 2022

Conversation

tnir
Copy link
Collaborator

@tnir tnir commented Jul 27, 2022

  • Introduce HAML-Lint for HAML files
  • Reorganize Action workflow files

Closes #774

Note: this does not include fix in single/double quotes due to missing RuboCop configurations (see #775)

Signed-off-by: Takuya Noguchi [email protected]

@tnir tnir added ruby Pull requests that update Ruby code static analysis Static analysis (Prettier, RuboCop, HAML-Lint etc.) labels Jul 27, 2022
@tnir tnir added this to the Architecture overhaul milestone Jul 27, 2022
@deivid-rodriguez deivid-rodriguez temporarily deployed to bundler-site-tnir-haml--sq3fx1 July 27, 2022 09:45 Inactive
@tnir tnir self-assigned this Jul 27, 2022
@deivid-rodriguez deivid-rodriguez temporarily deployed to bundler-site-tnir-haml--sq3fx1 July 27, 2022 10:19 Inactive
@deivid-rodriguez
Copy link
Member

Shouldn't this fail because of the inconsistent quotes when the idea of adding haml-lint came up?

Copy link
Member

@deivid-rodriguez deivid-rodriguez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I understand. We need to enable the StringLiterals cop in RuboCop since haml-lint will simply respect your RuboCop configuration.

Then ok, regarding the rest of the rules I don't have a strong opinion. I guess we're already enforcing the rules you set, so it seems like a good starting point.

@tnir
Copy link
Collaborator Author

tnir commented Jul 27, 2022

Yes, this is what you wanted to do in #672 (I mean if we accepted #672, we could have done this at once. We just need more steps, which I prefer too). Merging this to move this big step forward! 🚄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ruby Pull requests that update Ruby code static analysis Static analysis (Prettier, RuboCop, HAML-Lint etc.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Introduce HAML-Lint
2 participants